package com.zyk.leetcode;

/**
 * @author zhangsan
 * @date 2021/5/4 17:36
 */
public class C1832 {
    public static boolean checkIfPangram(String sentence) {
        int cnt = 0;
        char[] str = sentence.toCharArray();
        for (char c : str) {
            cnt |= (1 << (c-'a'));
        }
        return cnt == (1 << 26) - 1;
    }

    public static void main(String[] args) {
        String sentence = "thequickbrownfoxjumpsoverthelazydog";
        System.out.println(checkIfPangram(sentence));
    }
}
